<?php

namespace App\Models;

/**
 * @mixin IdeHelperBlindBoxRecord
 */
class BlindBoxRecord extends BaseModel
{
    public function blind_box_product()
    {
        return $this->belongsTo(Product::class, 'blind_box_id');
    }

    public function asset_product()
    {
        return $this->belongsTo(Product::class, 'asset_product_id');
    }

    public function asset()
    {
        return $this->belongsTo(Asset::class, 'user_asset_id');
    }

    public function user()
    {
        return $this->belongsTo(FrontendUser::class, 'user_id');
    }
}
